<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="../vue.js"></script>
    <script src="../vue-min.js"></script>
    <title>Document</title>
</head>

<body>
    <div id="app">
        <!--  @click.prevent 点击之后阻止跳转行为-->
       <a href="http://www.baidu.com" @click.prevent="show">跳转</a>
    </div>
    <script>
        const vr = new Vue({
            el: "#app", //表示当前的vr属性要控制的类名
            data: {
              
            },
            methods:{
                
                show(){
                    // e.preventDefault(); //组织点击跳转页面
                    console.log("dianjile");
                }
            }
           
        })
    </script>
</body>

</html>